package com.shqcjd.preinstallmobile.ui.adapter;

import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.preinstallmobile.R;
import com.shqcjd.preinstallmobile.model.pojo.InspectionRecordBean;

import java.util.List;

import butterknife.ButterKnife;

public class InspectRecordAdapter extends BaseQuickAdapter<InspectionRecordBean.ListBean,InspectRecordAdapter.ViewHolder> {

    public InspectRecordAdapter(@Nullable List<InspectionRecordBean.ListBean> data) {
        super(R.layout.item_equipment_info_inspection, data);
    }

    @Override
    protected void convert(InspectRecordAdapter.ViewHolder helper, InspectionRecordBean.ListBean item) {
        helper.setText(R.id.tv_item_equipment_info_code, item.task_code);
        helper.setText(R.id.tv_item_equipment_info_order, item.task_time);
        helper.setText(R.id.tv_item_equipment_info_person, item.user_name);
        helper.setText(R.id.tv_item_equipment_info_time, item.check_date);

    }

    class ViewHolder extends BaseViewHolder {
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }

}
